const { defineConfig } = require("@vue/cli-service");
const { name } = require("./package");

console.log(name);

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 7510,
    headers: {
      "Access-Control-Allow-Origin": "*",
    },
  },
  configureWebpack: (config) => {
    config.output.library = `${name}-[name]`;
    config.output.libraryTarget = "umd";
    config.output.chunkLoadingGlobal = `webpackJsonp_${name}`;
  },
});
